package com.mlz.mlzmall.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by jack.wang on 2015/11/24.
 */
public class AddressList {
    public int Status;
    public Object errors;
    public String msg;
    public Data data;

    public int getStatus() {
        return Status;
    }

    public void setStatus(int status) {
        Status = status;
    }

    public Object getErrors() {
        return errors;
    }

    public void setErrors(Object errors) {
        this.errors = errors;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {
        public int total;
        public int pageNum;
        public int size;
        public int pages;
        public List<LIST> list;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public List<LIST> getList() {
            return list;
        }

        public void setList(List<LIST> list) {
            this.list = list;
        }

        public static class LIST implements Serializable {
            //姓名全名
            private String fullname;

            //电话号码
            private String shippingTelephone;

            //国际长途区号
            private String regionCode;

            // 详细地址
            private String address;

            // 邮编
            private String postcode;

            // 是否标记为默认地址
            private boolean defaultAddress;
            // 地址Id
            private int addressId;

            public String getFullname() {
                return fullname;
            }

            public void setFullname(String fullname) {
                this.fullname = fullname;
            }

            public String getShippingTelephone() {
                return shippingTelephone;
            }

            public void setShippingTelephone(String shippingTelephone) {
                this.shippingTelephone = shippingTelephone;
            }

            public String getRegionCode() {
                return regionCode;
            }

            public void setRegionCode(String regionCode) {
                this.regionCode = regionCode;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getPostcode() {
                return postcode;
            }

            public void setPostcode(String postcode) {
                this.postcode = postcode;
            }

            public boolean isDefaultAddress() {
                return defaultAddress;
            }

            public void setDefaultAddress(boolean defaultAddress) {
                this.defaultAddress = defaultAddress;
            }

            public int getAddressId() {
                return addressId;
            }

            public void setAddressId(int addressId) {
                this.addressId = addressId;
            }

            @Override
            public String toString() {
                return "LIST{" +
                        "fullname='" + fullname + '\'' +
                        ", shippingTelephone='" + shippingTelephone + '\'' +
                        ", regionCode='" + regionCode + '\'' +
                        ", address='" + address + '\'' +
                        ", postcode='" + postcode + '\'' +
                        ", defaultAddress=" + defaultAddress +
                        ", addressId=" + addressId +
                        '}';
            }
        }
    }

    @Override
    public String toString() {
        return "AddressList{" +
                "Status=" + Status +
                ", errors=" + errors +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
